package com.breeze.sort;

/**
 * 排序均以从小到大排列
 */
public class SortTest {
    public static void main(String[] args) {
        int[] arr = {3, 7, 2, 1, 0, 8, 6, 9, 4, 5};
        SortContext sortContext = new SortContext();
        // sortContext.setSortMethod(new QuickSort());
        sortContext.setSortMethod(new InsertionSortImprove());
        sortContext.sort(arr);
        printArr(arr);
    }

    private static void printArr(int[] arr) {
        for (int i : arr) {
            System.out.print(i + ",");
        }
    }
}
